package com.ynet.middleground.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Songyf
 * @since 2022-10-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ur_user_delete_record")
public class UserDeleteRecord extends Model<UserDeleteRecord> {

    private static final long serialVersionUID = 638305566040023382L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 渠道来源
     */
    private String channel;

    /**
     * 删除时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 删除人
     */
    private Integer createBy;

    /**
     * 所属企业/部门id
     */
    private Integer enterpriseId;

    /**
     * 业态公司id
     */
    private Integer formatId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
